1 <md-dialog class="extractedReport-dialog" aria-label="New ExtractedReport">
2 <form name="extractedReportForm" class="md-inline-form" novalidate>
3 <md-toolbar class="md-accent md-hue-2">
5 class="md-toolbar-tools"
7 layout-align="space-between center"
9 <span class="title">{{ vm.title | translate }}</span>
10 <md-button class="md-icon-button" ng-click="vm.closeDialog()">
12 md-font-icon="icon-close"
13 aria-label="Close dialog"
19 <md-dialog-content ms-scroll>
20 <div class="error-list">
22 ng-repeat="error in vm.errors"
25 layout-align="space-between center"
28 <span class="message">{{error.message}}</span>
29 <span class="type">({{error.type}})</span>
31 <md-button class="md-icon-button">
33 md-font-icon="icon-alert-box"
34 aria-label="alert error"
40 <md-input-container class="md-block">
41 <label translate="ANALYTICS.REPORTNAME">ReportName</label>
45 ng-model="vm.extractedReport.name"
51 ng-messages="extractedReportForm['name'].$error"
52 ng-show="extractedReportForm['name'].$touched"
55 <div ng-message="required">
56 <span translate="ANALYTICS.ERRORS.REPORTNAME_REQUIRED"
57 >ReportName field is required</span
62 <md-input-container class="md-block">
63 <label translate="ANALYTICS.NAME">Name</label>
67 ng-model="vm.extractedReport.basename"
72 ng-messages="extractedReportForm['basename'].$error"
73 ng-show="extractedReportForm['basename'].$touched"
76 <div ng-message="required">
77 <span translate="ANALYTICS.ERRORS.NAME_REQUIRED"
78 >Name field is required</span
84 <div class="error-list">
86 ng-repeat="error in vm.errors"
89 layout-align="space-between center"
92 <span class="message">{{error.message}}</span>
93 <span class="type">({{error.type}})</span>
95 <md-button class="md-icon-button">
97 md-font-icon="icon-alert-box"
98 aria-label="alert error"
108 layout-align="space-between center"
109 ng-if="!vm.crudPermissions.readOnly"
111 <div layout="row" layout-align="start center">
114 ng-if="vm.crudPermissions.canEdit && !vm.newExtractedReport"
115 ng-click="vm.saveExtractedReport()"
116 class="send-button md-accent md-raised"
117 ng-disabled="extractedReportForm.$invalid || extractedReportForm.$pristine"
119 translate="ANALYTICS.SAVE"
120 translate-attr-aria-label="ANALYTICS.SAVE"
127 ng-if="vm.crudPermissions.canEdit && vm.newExtractedReport"
128 ng-click="vm.addNewExtractedReport()"
129 class="send-button md-accent md-raised"
130 ng-disabled="extractedReportForm.$invalid"
132 translate="ANALYTICS.ADD_EXTRACTEDREPORT"
133 translate-attr-aria-label="ANALYTICS.ADD_EXTRACTEDREPORT"
140 class="md-icon-button"
141 ng-if="vm.crudPermissions.canDelete && !vm.newExtractedReport"
142 ng-click="vm.deleteExtractedReport($event)"
145 translate-attr-aria-label="ANALYTICS.DELETE"
147 <md-icon md-font-icon="icon-delete"></md-icon>
149 ><span translate="ANALYTICS.DELETE">DELETE</span></md-tooltip